# -*- coding: utf-8 -*-
import pysvn
import tempfile

def get_diff(url_or_path, revision_number):
#	url_or_path = 'd:\\tmp\\myFileEncoder'
	tmp_dir = tempfile.gettempdir()
	c = pysvn.Client()
#	revision_number = 8
#	url = 'http://svn-test-and-blahblah.googlecode.com/svn/trunk/'
	client = pysvn.Client()
	revision_1 = pysvn.Revision(pysvn.opt_revision_kind.number, revision_number)
	revision_2 = pysvn.Revision(pysvn.opt_revision_kind.head)
	diff_text = c.diff(tmp_dir, url_or_path, revision1=revision_1, revision2=revision_2)
	return diff_text

#print get_increment(samplefile);
if __name__ == '__main__':
	print get_diff("d:\\tmp\\myFileEncoder",10);
